package com.dkm.ec.product.repository.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.ec.product.domain.ProductLikeStat;
import com.dkm.ec.product.repository.ProductLikeStatRepository;
import com.dkm.ec.product.persistence.dao.ProductLikeStatQueryDao;
import com.dkm.ec.product.persistence.entity.ProductLikeStatPo;

/**
 * 对象功能:商品点赞统计 Repository接口的实现类
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-07-31 20:41:58
 */
@Repository
public class ProductLikeStatRepositoryImpl extends AbstractRepository<String, ProductLikeStatPo,ProductLikeStat> implements ProductLikeStatRepository{
	  
	@Resource
	private  ProductLikeStatQueryDao productLikeStatQueryDao;

	public ProductLikeStat newInstance() {
		ProductLikeStatPo po = new ProductLikeStatPo();
		ProductLikeStat productLikeStat = SpringHelper.getBean(ProductLikeStat.class);
		productLikeStat.setData(po);
		return productLikeStat;
	}

	public ProductLikeStat newInstance(ProductLikeStatPo po) {
		ProductLikeStat productLikeStat = SpringHelper.getBean(ProductLikeStat.class);
		productLikeStat.setData(po);
		return productLikeStat;
	} 
	
	@Override
	protected IQueryDao<String, ProductLikeStatPo> getQueryDao() {
		return productLikeStatQueryDao;
	}
	
}
